<script setup lang="ts">

import {ref} from 'vue'

const testColor = ref('gold')



</script>

<template>
  <div class="Rod-page">Rod</div>
  <p v-my-color="testColor">通过指令修改DOM文字颜色 {{ testColor }}</p>
  <button @click="testColor = 'red'">点击换色 red </button>
  <button @click="testColor = 'green'">点击换色 green </button>
</template>

<style lang="scss" scoped></style>
